<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-30 11:08:49
 * @LastEditTime : 2022-09-30 11:08:57
 * @FilePath     : \表单控件绑定\v-model和组件\第二种(用于自定义输入组件上)\改变默认的属性名称\不和计算属性一起使用\第四种方式：原生语法糖 和script setup\APP.vue
-->
<script setup>
    import {ref} from 'vue'
    import CustomInput from './CustomInput.vue'
    const searchText2 = ref('')
</script>

<template>
    <div>
        <custom-input
        :test="searchText2"
        @update:test="searchText2 = $event"
        ></custom-input>
        <div>{{ searchText2 }}</div>
    </div>
</template>